<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>第一个js</title>
</head>

<body>
	<script type="text/javascript">
function rec(){
	alert("HELLO,欢迎学习javascript")	
	
}
	
	
	</script>	
	
<form name="form1" action="" method="post">
	
	<input type="button" value="运行程序" onClick="rec()">
	
	
	
	</form>	
</body>
</html>
